from django.contrib import admin

from apps.codetable.models import CodeTableHead, CodeTableDetail


@admin.register(CodeTableHead)
class CodeTableHeadAdmin(admin.ModelAdmin):
    list_display = ('model', 'field')


@admin.register(CodeTableDetail)
class CodeTableDetailAdmin(admin.ModelAdmin):
    list_display = ('codetable_head', 'localization', 'code', 'name')
